package com.kapcb.common.exception;

/**
 * <a>Title: BaseException </a>
 * <a>Author: cb <a>
 * <a>Description: 基础异常 <a>
 *
 * @author cb
 * @version 1.0
 * @date 2024/4/19 17:19
 * @since 1.0
 */
public class BaseException extends RuntimeException {

    private static final long serialVersionUID = 9052687460239714094L;

    private String code;

    public BaseException(String errMessage) {
        super(errMessage);
    }

    public BaseException(String code, String errMessage) {
        super(errMessage);
        this.code = code;
    }

    public BaseException(String code, Throwable e) {
        super(code, e);
    }

    public BaseException(String code, String errMessage, Throwable e) {
        super(errMessage, e);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String errCode) {
        this.code = errCode;
    }

}
